package com.wy.swagger;

import org.eclipse.jface.viewers.ISelection;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;

import com.wy.base.AbstractWizardPage;
import com.wy.util.PluginUtils;

public class SwaggerWizardPage extends AbstractWizardPage {

	private Text controllerPathText;

	public SwaggerWizardPage(ISelection selection) {
		super("wizardPage");
		setTitle("Swagger Configuration Wizard");
		setDescription("Swagger Configuration Class Definition");
		this.selection = selection;
	}

	@Override
	public void additionalControl(Composite parent, Composite self) {
		Label label = new Label(self, SWT.NULL);
		label.setText("&Controller Path:");
		controllerPathText = PluginUtils.createText(self, defaultTextModifyListenter());
		new Label(self, 0);
	}

	public String getControllerPath() {
		return controllerPathText.getText();
	}
}